package com.bwie.bwedu.model;

import com.bwie.bwedu.bean.response.BaseResponse;
import com.bwie.bwedu.bean.response.MainInfoResponse;

/**
 * Created by zhang on 2016/7/24.
 */
public interface  LocalSaveModel {
    public void http(String flag, String  pn,Listener listener);
    public void Invalidhttp(String id,InvalidListener invalid);
    public void deleteHttp(String id,DeleteListerer listener);
    public interface InvalidListener{
        public void invalidsuccess(MainInfoResponse userResponse);
        public void invaliderror(String info);
    }
    public interface Listener{
        public void success(MainInfoResponse userResponse);
        public void error(String info);
    }
    public interface  DeleteListerer{
        public void deleteSuccess(BaseResponse baseRespons);
        public void deleteError(String info);
    }
}
